package com.itlaobing.demo.servlet;

import com.wf.captcha.utils.CaptchaUtil;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Classname CaptchaServlet
 * @Description TODO()
 * @Date 2020/11/10 0010 10:13
 * @Author by Administrator
 * @Version v1.0
 */
@WebServlet("/captcha")
public class CaptchaServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //生成验证码
        CaptchaUtil.out(100, 38, 4, req, resp);
    }
}
